package com.lzx.adx.report.enums;

import lombok.Getter;

public enum YiduiCovertWifiEventTypeEnums {
    //转换类型【2新登，3，收购，4，次日留存，6，拉活UV,7拉活存单，8当日首购】

    active("y001","1","激活"),
    register("y002","2","注册"),
    pay("y003","3","付费事件"),
    retain("y004","5","次日留存"),
    guangjian("y005","6","关键行为"),
    ;


    @Getter
    private String ydCode;

    private String code;

    private String msg;


    YiduiCovertWifiEventTypeEnums(String ydCode, String code, String msg) {
        this.ydCode = ydCode;
        this.code = code;
        this.msg = msg;
    }



    public String getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    public static String getOutCode(String ydCode){
        for (YiduiCovertWifiEventTypeEnums value : YiduiCovertWifiEventTypeEnums.values()) {
            if(value.getYdCode().equals(ydCode)){
                return value.getCode();
            }
        }
        return  null;
    }

}
